/*
*   调拨申请表管理
*/
import request from '@/router/axios.js'

// 调拨申请单分页查询
export function allocationApplyFetchList(obj) {
  return request({
    url: '/eims/allocationApply/page',
    method: 'get',
    params: obj
  })
}

// 新增商品调拨申请表
export function allocationApplyAdd(obj) {
  return request({
    url: '/eims/allocationApply',
    method: 'post',
    data: obj
  })
}

// 根据ID查询商品调拨申请单
export function allocationApplyGetObj(id) {
  return request({
    url: '/eims/allocationApply/'+id,
    method: 'get'
  })
}

// 修改商品调拨申请单
export function allocationApplyEdit(obj) {
  return request({
    url: '/eims/allocationApply',
    method: 'put',
    data: obj
  })
}

// 删除申请调拨单
export function allocationApplyDel(id) {
  return request({
    url: '/eims/allocationApply/'+id,
    method: 'delete'
  })
}

// 查看详情
export function allocationApplyDetail(id) {
  return request({
    url: '/eims/allocationApply/'+id,
    method: 'get'
  })
}
